Class: Google::Apis::DfareportingV3_4::DfareportingService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/dfareporting_v3_4/service.rb

Overview

DCM/DFA Reporting And Trafficking API

Manages your DoubleClick Campaign Manager ad campaigns and reports.

Examples:

require 'google/apis/dfareporting_v3_4'

Dfareporting = Google::Apis::DfareportingV3_4 # Alias the module
service = Dfareporting::DfareportingService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeDfareportingService


49
50
51
52
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 49

def initialize
  super('https://www.googleapis.com/', 'dfareporting/v3.4/')
  @batch_path = 'batch/dfareporting/v3.4'
end

Instance Attribute Details

#keyString


38
39
40
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 38

def key
  @key
end

#quota_userString


43
44
45
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 43

def quota_user
  @quota_user
end

#user_ipString


47
48
49
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 47

def user_ip
  @user_ip
end

Instance Method Details

#batchinsert_conversion(profile_id, conversions_batch_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ConversionsBatchInsertResponse

Inserts conversions.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2384

def batchinsert_conversion(profile_id, conversions_batch_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/conversions/batchinsert', options)
  command.request_representation = Google::Apis::DfareportingV3_4::ConversionsBatchInsertRequest::Representation
  command.request_object = conversions_batch_insert_request_object
  command.response_representation = Google::Apis::DfareportingV3_4::ConversionsBatchInsertResponse::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ConversionsBatchInsertResponse
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#batchinsert_custom_event(profile_id, custom_events_batch_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CustomEventsBatchInsertResponse

Inserts custom events.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3514

def batchinsert_custom_event(profile_id, custom_events_batch_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/customEvents/batchinsert', options)
  command.request_representation = Google::Apis::DfareportingV3_4::CustomEventsBatchInsertRequest::Representation
  command.request_object = custom_events_batch_insert_request_object
  command.response_representation = Google::Apis::DfareportingV3_4::CustomEventsBatchInsertResponse::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CustomEventsBatchInsertResponse
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#batchupdate_conversion(profile_id, conversions_batch_update_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ConversionsBatchUpdateResponse

Updates existing conversions.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2420

def batchupdate_conversion(profile_id, conversions_batch_update_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/conversions/batchupdate', options)
  command.request_representation = Google::Apis::DfareportingV3_4::ConversionsBatchUpdateRequest::Representation
  command.request_object = conversions_batch_update_request_object
  command.response_representation = Google::Apis::DfareportingV3_4::ConversionsBatchUpdateResponse::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ConversionsBatchUpdateResponse
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing advertiser group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


898
899
900
901
902
903
904
905
906
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 898

def delete_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/advertiserGroups/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing content category.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


2146
2147
2148
2149
2150
2151
2152
2153
2154
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2146

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/contentCategories/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing creative field.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


2827
2828
2829
2830
2831
2832
2833
2834
2835
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2827

def delete_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing creative field value.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2577

def delete_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_dynamic_targeting_key(profile_id, object_id_, name, object_type, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing dynamic targeting key.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3748

def delete_dynamic_targeting_key(profile_id, object_id_, name, object_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/dynamicTargetingKeys/{objectId}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['objectId'] = object_id_ unless object_id_.nil?
  command.query['name'] = name unless name.nil?
  command.query['objectType'] = object_type unless object_type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing event tag.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


3868
3869
3870
3871
3872
3873
3874
3875
3876
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3868

def delete_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/eventTags/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing floodlight activity.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


4222
4223
4224
4225
4226
4227
4228
4229
4230
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4222

def delete_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/floodlightActivities/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing placement strategy.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


5828
5829
5830
5831
5832
5833
5834
5835
5836
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5828

def delete_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/placementStrategies/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a report by its ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


6959
6960
6961
6962
6963
6964
6965
6966
6967
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6959

def delete_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/reports/{reportId}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['reportId'] = report_id unless report_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an existing user role.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


8386
8387
8388
8389
8390
8391
8392
8393
8394
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8386

def delete_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'userprofiles/{profileId}/userRoles/{id}', options)
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#generatetag_floodlight_activity(profile_id, floodlight_activity_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightActivitiesGenerateTagResponse

Generates a tag for a floodlight activity.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4256

def generatetag_floodlight_activity(profile_id, floodlight_activity_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities/generatetag', options)
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightActivitiesGenerateTagResponse::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightActivitiesGenerateTagResponse
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['floodlightActivityId'] = floodlight_activity_id unless floodlight_activity_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#generatetags_placement(profile_id, campaign_id: nil, placement_ids: nil, tag_formats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlacementsGenerateTagsResponse

Generates tags for a placement.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6072

def generatetags_placement(profile_id, campaign_id: nil, placement_ids: nil, tag_formats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/placements/generatetags', options)
  command.response_representation = Google::Apis::DfareportingV3_4::PlacementsGenerateTagsResponse::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlacementsGenerateTagsResponse
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['campaignId'] = campaign_id unless campaign_id.nil?
  command.query['placementIds'] = placement_ids unless placement_ids.nil?
  command.query['tagFormats'] = tag_formats unless tag_formats.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Account

Gets one account by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


466
467
468
469
470
471
472
473
474
475
476
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 466

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/accounts/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Account::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Account
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account_active_ad_summary(profile_id, summary_account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AccountActiveAdSummary

Gets the account's active ad summary by account ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


78
79
80
81
82
83
84
85
86
87
88
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 78

def (profile_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::AccountActiveAdSummary::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AccountActiveAdSummary
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['summaryAccountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AccountPermission

Gets one account permission by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


183
184
185
186
187
188
189
190
191
192
193
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 183

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissions/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::AccountPermission::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AccountPermission
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AccountPermissionGroup

Gets one account permission group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


114
115
116
117
118
119
120
121
122
123
124
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 114

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/accountPermissionGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::AccountPermissionGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AccountPermissionGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account_user_profile(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AccountUserProfile

Gets one account user profile by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


252
253
254
255
256
257
258
259
260
261
262
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 252

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/accountUserProfiles/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::AccountUserProfile::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AccountUserProfile
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_ad(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Ad

Gets one ad by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


637
638
639
640
641
642
643
644
645
646
647
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 637

def get_ad(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/ads/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Ad::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Ad
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_advertiser(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Advertiser

Gets one advertiser by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1354

def get_advertiser(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/advertisers/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Advertiser::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Advertiser
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AdvertiserGroup

Gets one advertiser group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


932
933
934
935
936
937
938
939
940
941
942
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 932

def get_advertiser_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::AdvertiserGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AdvertiserGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_advertiser_landing_page(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::LandingPage

Gets one landing page by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1137

def get_advertiser_landing_page(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserLandingPages/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::LandingPage::Representation
  command.response_class = Google::Apis::DfareportingV3_4::LandingPage
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_campaign(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Campaign

Gets one campaign by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1697

def get_campaign(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/campaigns/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Campaign::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Campaign
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_change_log(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ChangeLog

Gets one change log by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1922

def get_change_log(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/changeLogs/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::ChangeLog::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ChangeLog
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_connection_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ConnectionType

Gets one connection type by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2077

def get_connection_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/connectionTypes/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::ConnectionType::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ConnectionType
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_content_category(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ContentCategory

Gets one content category by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2180

def (profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/contentCategories/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::ContentCategory::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ContentCategory
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_country(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Country

Gets one country by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2457

def get_country(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/countries/{dartId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Country::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Country
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['dartId'] = dart_id unless dart_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_creative(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Creative

Gets one creative by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3280

def get_creative(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/creatives/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Creative::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Creative
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeField

Gets one creative field by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2861

def get_creative_field(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeField::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeField
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeFieldValue

Gets one creative field value by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2614

def get_creative_field_value(profile_id, creative_field_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeFieldValue::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeFieldValue
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_creative_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeGroup

Gets one creative group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3069

def get_creative_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/creativeGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_directory_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::DirectorySite

Gets one directory site by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3593

def get_directory_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::DirectorySite::Representation
  command.response_class = Google::Apis::DfareportingV3_4::DirectorySite
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::EventTag

Gets one event tag by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3902

def get_event_tag(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/eventTags/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::EventTag::Representation
  command.response_class = Google::Apis::DfareportingV3_4::EventTag
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_file(report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::File

Retrieves a report file by its report ID and file ID. This method supports media download.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4133

def get_file(report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
  if download_dest.nil?
    command = make_simple_command(:get, 'reports/{reportId}/files/{fileId}', options)
  else
    command = make_download_command(:get, 'reports/{reportId}/files/{fileId}', options)
    command.download_dest = download_dest
  end
  command.response_representation = Google::Apis::DfareportingV3_4::File::Representation
  command.response_class = Google::Apis::DfareportingV3_4::File
  command.params['reportId'] = report_id unless report_id.nil?
  command.params['fileId'] = file_id unless file_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightActivity

Gets one floodlight activity by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4292

def get_floodlight_activity(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivities/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightActivity::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightActivity
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_floodlight_activity_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightActivityGroup

Gets one floodlight activity group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4527

def get_floodlight_activity_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightActivityGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightActivityGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightActivityGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_floodlight_configuration(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightConfiguration

Gets one floodlight configuration by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4749

def get_floodlight_configuration(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/floodlightConfigurations/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightConfiguration::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightConfiguration
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_inventory_item(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::InventoryItem

Gets one inventory item by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4900

def get_inventory_item(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::InventoryItem::Representation
  command.response_class = Google::Apis::DfareportingV3_4::InventoryItem
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['projectId'] = project_id unless project_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_mobile_app(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::MobileApp

Gets one mobile app by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5067

def get_mobile_app(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/mobileApps/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::MobileApp::Representation
  command.response_class = Google::Apis::DfareportingV3_4::MobileApp
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_mobile_carrier(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::MobileCarrier

Gets one mobile carrier by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5156

def get_mobile_carrier(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/mobileCarriers/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::MobileCarrier::Representation
  command.response_class = Google::Apis::DfareportingV3_4::MobileCarrier
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_operating_system(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::OperatingSystem

Gets one operating system by DART ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5294

def get_operating_system(profile_id, dart_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystems/{dartId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::OperatingSystem::Representation
  command.response_class = Google::Apis::DfareportingV3_4::OperatingSystem
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['dartId'] = dart_id unless dart_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_operating_system_version(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::OperatingSystemVersion

Gets one operating system version by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5225

def get_operating_system_version(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/operatingSystemVersions/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::OperatingSystemVersion::Representation
  command.response_class = Google::Apis::DfareportingV3_4::OperatingSystemVersion
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_order(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Order

Gets one order by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5474

def get_order(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Order::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Order
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['projectId'] = project_id unless project_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_order_document(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::OrderDocument

Gets one order document by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5365

def get_order_document(profile_id, project_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::OrderDocument::Representation
  command.response_class = Google::Apis::DfareportingV3_4::OrderDocument
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['projectId'] = project_id unless project_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_placement(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Placement

Gets one placement by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6110

def get_placement(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/placements/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Placement::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Placement
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_placement_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlacementGroup

Gets one placement group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5573

def get_placement_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/placementGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::PlacementGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlacementGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlacementStrategy

Gets one placement strategy by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5862

def get_placement_strategy(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/placementStrategies/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::PlacementStrategy::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlacementStrategy
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_platform_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlatformType

Gets one platform type by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6370

def get_platform_type(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/platformTypes/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::PlatformType::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlatformType
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_postal_code(profile_id, code, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PostalCode

Gets one postal code by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6439

def get_postal_code(profile_id, code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/postalCodes/{code}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::PostalCode::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PostalCode
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['code'] = code unless code.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_project(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Project

Gets one project by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6508

def get_project(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/projects/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Project::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Project
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::RemarketingList

Gets one remarketing list by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6748

def get_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingLists/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::RemarketingList::Representation
  command.response_class = Google::Apis::DfareportingV3_4::RemarketingList
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_remarketing_list_share(profile_id, remarketing_list_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::RemarketingListShare

Gets one remarketing list share by remarketing list ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6636

def get_remarketing_list_share(profile_id, remarketing_list_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::RemarketingListShare::Representation
  command.response_class = Google::Apis::DfareportingV3_4::RemarketingListShare
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['remarketingListId'] = remarketing_list_id unless remarketing_list_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Report

Retrieves a report by its ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6993

def get_report(profile_id, report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Report::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Report
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['reportId'] = report_id unless report_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_report_file(profile_id, report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::File

Retrieves a report file. This method supports media download.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7233

def get_report_file(profile_id, report_id, file_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
  if download_dest.nil?
    command = make_simple_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options)
  else
    command = make_download_command(:get, 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', options)
    command.download_dest = download_dest
  end
  command.response_representation = Google::Apis::DfareportingV3_4::File::Representation
  command.response_class = Google::Apis::DfareportingV3_4::File
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['reportId'] = report_id unless report_id.nil?
  command.params['fileId'] = file_id unless file_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Site

Gets one site by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7323

def get_site(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/sites/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Site::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Site
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_size(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Size

Gets one size by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7555

def get_size(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/sizes/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Size::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Size
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_subaccount(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Subaccount

Gets one subaccount by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7675

def get_subaccount(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/subaccounts/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::Subaccount::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Subaccount
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_targetable_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::TargetableRemarketingList

Gets one remarketing list by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7878

def get_targetable_remarketing_list(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/targetableRemarketingLists/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::TargetableRemarketingList::Representation
  command.response_class = Google::Apis::DfareportingV3_4::TargetableRemarketingList
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_targeting_template(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::TargetingTemplate

Gets one targeting template by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7975

def get_targeting_template(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/targetingTemplates/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::TargetingTemplate::Representation
  command.response_class = Google::Apis::DfareportingV3_4::TargetingTemplate
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_user_profile(profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::UserProfile

Gets one user profile by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8180

def (profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::UserProfile::Representation
  command.response_class = Google::Apis::DfareportingV3_4::UserProfile
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::UserRole

Gets one user role by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8420

def get_user_role(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/userRoles/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::UserRole::Representation
  command.response_class = Google::Apis::DfareportingV3_4::UserRole
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_user_role_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::UserRolePermission

Gets one user role permission by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8314

def get_user_role_permission(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissions/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::UserRolePermission::Representation
  command.response_class = Google::Apis::DfareportingV3_4::UserRolePermission
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_user_role_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::UserRolePermissionGroup

Gets one user role permission group by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8245

def get_user_role_permission_group(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/userRolePermissionGroups/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::UserRolePermissionGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::UserRolePermissionGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_video_format(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::VideoFormat

Gets one video format by ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 8630

def get_video_format(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'userprofiles/{profileId}/videoFormats/{id}', options)
  command.response_representation = Google::Apis::DfareportingV3_4::VideoFormat::Representation
  command.response_class = Google::Apis::DfareportingV3_4::VideoFormat
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['id'] = id unless id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_account_user_profile(profile_id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AccountUserProfile

Inserts a new account user profile.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


287
288
289
290
291
292
293
294
295
296
297
298
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 287

def (profile_id,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/accountUserProfiles', options)
  command.request_representation = Google::Apis::DfareportingV3_4::AccountUserProfile::Representation
  command.request_object = 
  command.response_representation = Google::Apis::DfareportingV3_4::AccountUserProfile::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AccountUserProfile
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Ad

Inserts a new ad.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


672
673
674
675
676
677
678
679
680
681
682
683
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 672

def insert_ad(profile_id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/ads', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Ad::Representation
  command.request_object = ad_object
  command.response_representation = Google::Apis::DfareportingV3_4::Ad::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Ad
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Advertiser

Inserts a new advertiser.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1389

def insert_advertiser(profile_id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/advertisers', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Advertiser::Representation
  command.request_object = advertiser_object
  command.response_representation = Google::Apis::DfareportingV3_4::Advertiser::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Advertiser
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::AdvertiserGroup

Inserts a new advertiser group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


967
968
969
970
971
972
973
974
975
976
977
978
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 967

def insert_advertiser_group(profile_id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/advertiserGroups', options)
  command.request_representation = Google::Apis::DfareportingV3_4::AdvertiserGroup::Representation
  command.request_object = advertiser_group_object
  command.response_representation = Google::Apis::DfareportingV3_4::AdvertiserGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::AdvertiserGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_advertiser_landing_page(profile_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::LandingPage

Inserts a new landing page.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1172

def insert_advertiser_landing_page(profile_id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/advertiserLandingPages', options)
  command.request_representation = Google::Apis::DfareportingV3_4::LandingPage::Representation
  command.request_object = landing_page_object
  command.response_representation = Google::Apis::DfareportingV3_4::LandingPage::Representation
  command.response_class = Google::Apis::DfareportingV3_4::LandingPage
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_campaign(profile_id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Campaign

Inserts a new campaign.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1732

def insert_campaign(profile_id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Campaign::Representation
  command.request_object = campaign_object
  command.response_representation = Google::Apis::DfareportingV3_4::Campaign::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Campaign
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_campaign_creative_association(profile_id, campaign_id, campaign_creative_association_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CampaignCreativeAssociation

Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 1613

def insert_campaign_creative_association(profile_id, campaign_id, campaign_creative_association_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', options)
  command.request_representation = Google::Apis::DfareportingV3_4::CampaignCreativeAssociation::Representation
  command.request_object = campaign_creative_association_object
  command.response_representation = Google::Apis::DfareportingV3_4::CampaignCreativeAssociation::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CampaignCreativeAssociation
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['campaignId'] = campaign_id unless campaign_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_content_category(profile_id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::ContentCategory

Inserts a new content category.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2215

def (profile_id,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/contentCategories', options)
  command.request_representation = Google::Apis::DfareportingV3_4::ContentCategory::Representation
  command.request_object = 
  command.response_representation = Google::Apis::DfareportingV3_4::ContentCategory::Representation
  command.response_class = Google::Apis::DfareportingV3_4::ContentCategory
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Creative

Inserts a new creative.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3315

def insert_creative(profile_id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/creatives', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Creative::Representation
  command.request_object = creative_object
  command.response_representation = Google::Apis::DfareportingV3_4::Creative::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Creative
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_creative_asset(profile_id, advertiser_id, creative_asset_metadata_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeAssetMetadata

Inserts a new creative asset.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2531

def insert_creative_asset(profile_id, advertiser_id,  = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
  if upload_source.nil?
    command = make_simple_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options)
  else
    command = make_upload_command(:post, 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', options)
    command.upload_source = upload_source
    command.upload_content_type = content_type
  end
  command.request_representation = Google::Apis::DfareportingV3_4::CreativeAssetMetadata::Representation
  command.request_object = 
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeAssetMetadata::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeAssetMetadata
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeField

Inserts a new creative field.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2896

def insert_creative_field(profile_id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields', options)
  command.request_representation = Google::Apis::DfareportingV3_4::CreativeField::Representation
  command.request_object = creative_field_object
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeField::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeField
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeFieldValue

Inserts a new creative field value.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 2652

def insert_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', options)
  command.request_representation = Google::Apis::DfareportingV3_4::CreativeFieldValue::Representation
  command.request_object = creative_field_value_object
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeFieldValue::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeFieldValue
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['creativeFieldId'] = creative_field_id unless creative_field_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::CreativeGroup

Inserts a new creative group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3104

def insert_creative_group(profile_id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/creativeGroups', options)
  command.request_representation = Google::Apis::DfareportingV3_4::CreativeGroup::Representation
  command.request_object = creative_group_object
  command.response_representation = Google::Apis::DfareportingV3_4::CreativeGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::CreativeGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_directory_site(profile_id, directory_site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::DirectorySite

Inserts a new directory site.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3628

def insert_directory_site(profile_id, directory_site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/directorySites', options)
  command.request_representation = Google::Apis::DfareportingV3_4::DirectorySite::Representation
  command.request_object = directory_site_object
  command.response_representation = Google::Apis::DfareportingV3_4::DirectorySite::Representation
  command.response_class = Google::Apis::DfareportingV3_4::DirectorySite
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_dynamic_targeting_key(profile_id, dynamic_targeting_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::DynamicTargetingKey

Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3786

def insert_dynamic_targeting_key(profile_id, dynamic_targeting_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/dynamicTargetingKeys', options)
  command.request_representation = Google::Apis::DfareportingV3_4::DynamicTargetingKey::Representation
  command.request_object = dynamic_targeting_key_object
  command.response_representation = Google::Apis::DfareportingV3_4::DynamicTargetingKey::Representation
  command.response_class = Google::Apis::DfareportingV3_4::DynamicTargetingKey
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::EventTag

Inserts a new event tag.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 3937

def insert_event_tag(profile_id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/eventTags', options)
  command.request_representation = Google::Apis::DfareportingV3_4::EventTag::Representation
  command.request_object = event_tag_object
  command.response_representation = Google::Apis::DfareportingV3_4::EventTag::Representation
  command.response_class = Google::Apis::DfareportingV3_4::EventTag
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightActivity

Inserts a new floodlight activity.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4327

def insert_floodlight_activity(profile_id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivities', options)
  command.request_representation = Google::Apis::DfareportingV3_4::FloodlightActivity::Representation
  command.request_object = floodlight_activity_object
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightActivity::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightActivity
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::FloodlightActivityGroup

Inserts a new floodlight activity group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 4562

def insert_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/floodlightActivityGroups', options)
  command.request_representation = Google::Apis::DfareportingV3_4::FloodlightActivityGroup::Representation
  command.request_object = floodlight_activity_group_object
  command.response_representation = Google::Apis::DfareportingV3_4::FloodlightActivityGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::FloodlightActivityGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Placement

Inserts a new placement.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6145

def insert_placement(profile_id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/placements', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Placement::Representation
  command.request_object = placement_object
  command.response_representation = Google::Apis::DfareportingV3_4::Placement::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Placement
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlacementGroup

Inserts a new placement group.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5608

def insert_placement_group(profile_id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/placementGroups', options)
  command.request_representation = Google::Apis::DfareportingV3_4::PlacementGroup::Representation
  command.request_object = placement_group_object
  command.response_representation = Google::Apis::DfareportingV3_4::PlacementGroup::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlacementGroup
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::PlacementStrategy

Inserts a new placement strategy.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 5897

def insert_placement_strategy(profile_id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/placementStrategies', options)
  command.request_representation = Google::Apis::DfareportingV3_4::PlacementStrategy::Representation
  command.request_object = placement_strategy_object
  command.response_representation = Google::Apis::DfareportingV3_4::PlacementStrategy::Representation
  command.response_class = Google::Apis::DfareportingV3_4::PlacementStrategy
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::RemarketingList

Inserts a new remarketing list.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 6783

def insert_remarketing_list(profile_id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/remarketingLists', options)
  command.request_representation = Google::Apis::DfareportingV3_4::RemarketingList::Representation
  command.request_object = remarketing_list_object
  command.response_representation = Google::Apis::DfareportingV3_4::RemarketingList::Representation
  command.response_class = Google::Apis::DfareportingV3_4::RemarketingList
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_report(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Report

Creates a report.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7028

def insert_report(profile_id, report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/reports', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Report::Representation
  command.request_object = report_object
  command.response_representation = Google::Apis::DfareportingV3_4::Report::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Report
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Site

Inserts a new site.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7358

def insert_site(profile_id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/sites', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Site::Representation
  command.request_object = site_object
  command.response_representation = Google::Apis::DfareportingV3_4::Site::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Site
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_size(profile_id, size_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DfareportingV3_4::Size

Inserts a new size.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
# File 'generated/google/apis/dfareporting_v3_4/service.rb', line 7590

def insert_size(profile_id, size_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'userprofiles/{profileId}/sizes', options)
  command.request_representation = Google::Apis::DfareportingV3_4::Size::Representation
  command.request_object = size_object
  command.response_representation = Google::Apis::DfareportingV3_4::Size::Representation
  command.response_class = Google::Apis::DfareportingV3_4::Size
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query[