Close httplib2 connections.
get(profileId, id, x__xgafv=None)
Gets one billing profile by ID.
Retrieves a list of billing profiles, possibly filtered. This method supports paging.
Retrieves the next page of results.
update(profileId, body=None, x__xgafv=None)
Updates an existing billing profile.
close()
Close httplib2 connections.
get(profileId, id, x__xgafv=None)
Gets one billing profile by ID. Args: profileId: string, User profile ID associated with this request. (required) id: string, Billing Profile ID. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Contains properties of a Campaign Manager Billing Profile. "consolidatedInvoice": True or False, # Consolidated invoice option for this billing profile. Used to get a single, consolidated invoice across the chosen invoice level. "countryCode": "A String", # Country code of this billing profile.This is a read-only field. "currencyCode": "A String", # Billing currency code in ISO 4217 format.This is a read-only field. "id": "A String", # ID of this billing profile. This is a read-only, auto-generated field. "invoiceLevel": "A String", # Invoice level for this billing profile. Used to group fees into separate invoices by account, advertiser, or campaign. "isDefault": True or False, # True if the billing profile is the account default profile. This is a read-only field. "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingProfile". "name": "A String", # Name of this billing profile. This is a required field and must be less than 256 characters long and must be unique among billing profile in the same account. "paymentsAccountId": "A String", # The ID of the payment account the billing profile belongs to. This is a read-only field. "paymentsCustomerId": "A String", # The ID of the payment customer the billing profile belongs to. This is a read-only field. "purchaseOrder": "A String", # Purchase order (PO) for this billing profile. This PO number is used in the invoices for all of the advertisers in this billing profile. "secondaryPaymentsCustomerId": "A String", # The ID of the secondary payment customer the billing profile belongs to. This is a read-only field. "status": "A String", # Status of this billing profile.This is a read-only field. }
list(profileId, currency_code=None, ids=None, maxResults=None, name=None, onlySuggestion=None, pageToken=None, sortField=None, sortOrder=None, status=None, subaccountIds=None, x__xgafv=None)
Retrieves a list of billing profiles, possibly filtered. This method supports paging. Args: profileId: string, User profile ID associated with this request. (required) currency_code: string, Select only billing profile with currency. ids: string, Select only billing profile with these IDs. (repeated) maxResults: integer, Maximum number of results to return. name: string, Allows searching for billing profiles by name. Wildcards (*) are allowed. For example, "profile*2020" will return objects with names like "profile June 2020", "profile April 2020", or simply "profile 2020". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "profile" will match objects with name "my profile", "profile 2021", or simply "profile". onlySuggestion: boolean, Select only billing profile which is suggested for the currency_code & subaccount_id using the Billing Suggestion API. pageToken: string, Value of the nextPageToken from the previous result page. sortField: string, Field by which to sort the list. Allowed values ID - NAME - sortOrder: string, Order of sorted results. Allowed values ASCENDING - Ascending order. DESCENDING - Descending order. status: string, Select only billing profile with the specified status. (repeated) Allowed values UNDER_REVIEW - ACTIVE - ARCHIVED - subaccountIds: string, Select only billing profile with the specified subaccount.When only_suggestion is true, only a single subaccount_id is supported. (repeated) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Billing profile List Response "billingProfiles": [ # Billing profiles collection. { # Contains properties of a Campaign Manager Billing Profile. "consolidatedInvoice": True or False, # Consolidated invoice option for this billing profile. Used to get a single, consolidated invoice across the chosen invoice level. "countryCode": "A String", # Country code of this billing profile.This is a read-only field. "currencyCode": "A String", # Billing currency code in ISO 4217 format.This is a read-only field. "id": "A String", # ID of this billing profile. This is a read-only, auto-generated field. "invoiceLevel": "A String", # Invoice level for this billing profile. Used to group fees into separate invoices by account, advertiser, or campaign. "isDefault": True or False, # True if the billing profile is the account default profile. This is a read-only field. "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingProfile". "name": "A String", # Name of this billing profile. This is a required field and must be less than 256 characters long and must be unique among billing profile in the same account. "paymentsAccountId": "A String", # The ID of the payment account the billing profile belongs to. This is a read-only field. "paymentsCustomerId": "A String", # The ID of the payment customer the billing profile belongs to. This is a read-only field. "purchaseOrder": "A String", # Purchase order (PO) for this billing profile. This PO number is used in the invoices for all of the advertisers in this billing profile. "secondaryPaymentsCustomerId": "A String", # The ID of the secondary payment customer the billing profile belongs to. This is a read-only field. "status": "A String", # Status of this billing profile.This is a read-only field. }, ], "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingProfilesListResponse". "nextPageToken": "A String", # Pagination token to be used for the next list operation. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
update(profileId, body=None, x__xgafv=None)
Updates an existing billing profile. Args: profileId: string, User profile ID associated with this request. (required) body: object, The request body. The object takes the form of: { # Contains properties of a Campaign Manager Billing Profile. "consolidatedInvoice": True or False, # Consolidated invoice option for this billing profile. Used to get a single, consolidated invoice across the chosen invoice level. "countryCode": "A String", # Country code of this billing profile.This is a read-only field. "currencyCode": "A String", # Billing currency code in ISO 4217 format.This is a read-only field. "id": "A String", # ID of this billing profile. This is a read-only, auto-generated field. "invoiceLevel": "A String", # Invoice level for this billing profile. Used to group fees into separate invoices by account, advertiser, or campaign. "isDefault": True or False, # True if the billing profile is the account default profile. This is a read-only field. "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingProfile". "name": "A String", # Name of this billing profile. This is a required field and must be less than 256 characters long and must be unique among billing profile in the same account. "paymentsAccountId": "A String", # The ID of the payment account the billing profile belongs to. This is a read-only field. "paymentsCustomerId": "A String", # The ID of the payment customer the billing profile belongs to. This is a read-only field. "purchaseOrder": "A String", # Purchase order (PO) for this billing profile. This PO number is used in the invoices for all of the advertisers in this billing profile. "secondaryPaymentsCustomerId": "A String", # The ID of the secondary payment customer the billing profile belongs to. This is a read-only field. "status": "A String", # Status of this billing profile.This is a read-only field. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Contains properties of a Campaign Manager Billing Profile. "consolidatedInvoice": True or False, # Consolidated invoice option for this billing profile. Used to get a single, consolidated invoice across the chosen invoice level. "countryCode": "A String", # Country code of this billing profile.This is a read-only field. "currencyCode": "A String", # Billing currency code in ISO 4217 format.This is a read-only field. "id": "A String", # ID of this billing profile. This is a read-only, auto-generated field. "invoiceLevel": "A String", # Invoice level for this billing profile. Used to group fees into separate invoices by account, advertiser, or campaign. "isDefault": True or False, # True if the billing profile is the account default profile. This is a read-only field. "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#billingProfile". "name": "A String", # Name of this billing profile. This is a required field and must be less than 256 characters long and must be unique among billing profile in the same account. "paymentsAccountId": "A String", # The ID of the payment account the billing profile belongs to. This is a read-only field. "paymentsCustomerId": "A String", # The ID of the payment customer the billing profile belongs to. This is a read-only field. "purchaseOrder": "A String", # Purchase order (PO) for this billing profile. This PO number is used in the invoices for all of the advertisers in this billing profile. "secondaryPaymentsCustomerId": "A String", # The ID of the secondary payment customer the billing profile belongs to. This is a read-only field. "status": "A String", # Status of this billing profile.This is a read-only field. }