Campaign Manager 360 API . billingAssignments

Instance Methods

close()

Close httplib2 connections.

insert(profileId, billingProfileId, body=None, x__xgafv=None)

Inserts a new billing assignment and returns the new assignment. Only one of advertiser_id or campaign_id is support per request. If the new assignment has no effect (assigning a campaign to the parent advertiser billing profile or assigning an advertiser to the account billing profile), no assignment will be returned.

list(profileId, billingProfileId, x__xgafv=None)

Retrieves a list of billing assignments.

Method Details

close()
Close httplib2 connections.
insert(profileId, billingProfileId, body=None, x__xgafv=None)
Inserts a new billing assignment and returns the new assignment. Only one of advertiser_id or campaign_id is support per request. If the new assignment has no effect (assigning a campaign to the parent advertiser billing profile or assigning an advertiser to the account billing profile), no assignment will be returned.

Args:
  profileId: string, User profile ID associated with this request. (required)
  billingProfileId: string, Billing profile ID of this billing assignment. (required)
  body: object, The request body.
    The object takes the form of:

{ # List account, subaccount, advertiser, and campaign associated with a given Billing Profile.
  "accountId": "A String", # ID of the account associated with the billing assignment.This is a read-only, auto-generated field.
  "advertiserId": "A String", # ID of the advertiser associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single advertiser
  "campaignId": "A String", # ID of the campaign associated with the billing assignment. Wildcard (*) means this assignment is not limited to a single campaign
  "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingAssignment".
  "subaccountId": "A String", # ID of the subaccount associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single subaccountThis is a read-only, auto-generated field.
}

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

Returns:
  An object of the form:

    { # List account, subaccount, advertiser, and campaign associated with a given Billing Profile.
  "accountId": "A String", # ID of the account associated with the billing assignment.This is a read-only, auto-generated field.
  "advertiserId": "A String", # ID of the advertiser associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single advertiser
  "campaignId": "A String", # ID of the campaign associated with the billing assignment. Wildcard (*) means this assignment is not limited to a single campaign
  "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingAssignment".
  "subaccountId": "A String", # ID of the subaccount associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single subaccountThis is a read-only, auto-generated field.
}
list(profileId, billingProfileId, x__xgafv=None)
Retrieves a list of billing assignments.

Args:
  profileId: string, User profile ID associated with this request. (required)
  billingProfileId: string, Billing profile ID of this billing assignment. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Billing assignment List Response
  "billingAssignments": [ # Billing assignments collection.
    { # List account, subaccount, advertiser, and campaign associated with a given Billing Profile.
      "accountId": "A String", # ID of the account associated with the billing assignment.This is a read-only, auto-generated field.
      "advertiserId": "A String", # ID of the advertiser associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single advertiser
      "campaignId": "A String", # ID of the campaign associated with the billing assignment. Wildcard (*) means this assignment is not limited to a single campaign
      "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingAssignment".
      "subaccountId": "A String", # ID of the subaccount associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single subaccountThis is a read-only, auto-generated field.
    },
  ],
  "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingAssignmentsListResponse".
}