Search Ads 360 Reporting API . customers . productLinks

Instance Methods

close()

Close httplib2 connections.

create(customerId, body=None, x__xgafv=None)

Creates a product link. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()

remove(customerId, body=None, x__xgafv=None)

Removes a product link. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [FieldMaskError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()

Method Details

close()
Close httplib2 connections.
create(customerId, body=None, x__xgafv=None)
Creates a product link. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()

Args:
  customerId: string, Required. The ID of the customer for which the product link is created. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ProductLinkService.CreateProductLink.
  "productLink": { # Represents the data sharing connection between # Required. The product link to be created.
    "advertisingPartner": { # The identifier for the Advertising Partner Google Ads account. # Output only. Advertising Partner link.
      "customer": "A String", # Output only. The resource name of the advertising partner Google Ads account. This field is required and should not be empty when creating a new Advertising Partner link. It is unable to be modified after the creation of the link.
    },
    "dataPartner": { # The identifier for Data Partner account. # Immutable. Data partner link.
      "dataPartnerId": "A String", # Immutable. The customer ID of the Data partner account. This field is required and should not be empty when creating a new data partner link. It is unable to be modified after the creation of the link.
    },
    "googleAds": { # The identifier for Google Ads account. # Immutable. Google Ads link.
      "customer": "A String", # Immutable. The resource name of the Google Ads account. This field is required and should not be empty when creating a new Google Ads link. It is unable to be modified after the creation of the link.
    },
    "merchantCenter": { # The identifier for Google Merchant Center account # Immutable. Google Merchant Center link.
      "merchantCenterId": "A String", # Immutable. The customer ID of the Google Merchant Center account. This field is required and should not be empty when creating a new Merchant Center link. It is unable to be modified after the creation of the link.
    },
    "productLinkId": "A String", # Output only. The ID of the link. This field is read only.
    "resourceName": "A String", # Immutable. Resource name of the product link. ProductLink resource names have the form: ` `
    "type": "A String", # Output only. The type of the linked product.
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ProductLinkService.CreateProductLink.
  "resourceName": "A String", # Returned for successful operations. Resource name of the product link.
}
remove(customerId, body=None, x__xgafv=None)
Removes a product link. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [FieldMaskError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()

Args:
  customerId: string, Required. The ID of the customer being modified. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ProductLinkService.RemoveProductLink.
  "resourceName": "A String", # Required. Remove operation: A resource name for the product link to remove is expected, in this format: ` `
  "validateOnly": True or False, # If true, the request is validated but not executed. Only errors are returned, not results.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for product link removal.
  "resourceName": "A String", # Result for the remove request.
}