Hello,
I would like to get a betting understanding of the Billing set up process.
I have read the information
from https://developers.google.com/google-ads/api/docs/billing/billing-setups
and have created the following method to create a payment account under a
specific payment profile account (id).
public string NewPropertyBillingSetup(Int64 CustomerId, string
PaymentProfileId, string CompanyName)
{
BillingSetupServiceClient billingService =
Client.GetService(Services.V5.BillingSetupService);
BillingSetup billingSetup = new BillingSetup()
{
PaymentsAccountInfo = new PaymentsAccountInfo()
{
PaymentsAccountName = CompanyName,
PaymentsProfileId = PaymentProfileId
},
StartTimeType =
Google.Ads.GoogleAds.V5.Enums.TimeTypeEnum.Types.TimeType.Now
};
BillingSetupOperation setupOperation = new
BillingSetupOperation()
{
Create = billingSetup
};
MutateBillingSetupRequest setupRequest = new
MutateBillingSetupRequest()
{
CustomerId = CustomerId.ToString(),
Operation = setupOperation
};
MutateBillingSetupResponse response =
billingService.MutateBillingSetup(setupRequest);
if (response.Result.ResourceName.Length == 0) { return
"failure"; }
return "success";
}
My question is will it return something like the following:
{
"results": [
{
"billingSetup": {
"resourceName": "customers/REDACTED/billingSetups/REDACTED",
"id": "REDACTED",
"status": "APPROVED",
"paymentsAccount":
"customers/REDACTED/paymentsAccounts/REDACTED",
"paymentsAccountInfo": {
"paymentsAccountId": "REDACTED",
"paymentsAccountName": "Some name.",
"paymentsProfileId": "REDACTED",
"paymentsProfileName": "Some company name"
}
}
}
],
KDJ
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/6d2231bd-42ca-49d1-83ec-c23335e7e4a7n%40googlegroups.com.