{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"billingSetupError": "NO_SIGNUP_PERMISSION"
},
"message": "The customer does not have permission to signup for billing or does not have permission to use a given payments profile ID."
}
]
}
]
}
}public function testBasicTest()
{
$billingSetup = new BillingSetup();
$billingSetup
->setPaymentsAccountInfo(
(new PaymentsAccountInfo())
->setPaymentsAccountName(new StringValue(['value' => 'CreditCardTest']))
->setPaymentsProfileId(new StringValue(['value' => 'XXXX-XXXX-XXXX']))
)
->setStartTimeType(TimeType::NOW);
$billingSetupOperation = new BillingSetupOperation();
$billingSetupOperation->setCreate($billingSetup);
$billingSetupServiceClient = $this->googleAdsClient->getBillingSetupServiceClient();
$billingSetupServiceClient->mutateBillingSetup(self::CLIENT_ID, $billingSetupOperation);
}
{
"customerId": "1241969154",
"operation": {
"create": {
"paymentsAccountInfo": {
"paymentsAccountName": "CreditCardTest",
"paymentsProfileId": "2096-9326-0136"
},
"startTimeType": "NOW"
}
}
}
Hi Junho,
Thank you for reaching out. Billing setups can only be created by customers who have permission to set up billings. You have to reach out to your Google Technical Account Manager for help in setting up permissions. Please let me know if you have any further questions.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Martin,
Thank you for reaching out. To get permission setting up billing for your account, you have to reach out to your Google Account Manager or Google Representative for help in setting up permissions. They will grant you necessary permissions for setting up billing.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||