Hi, i am developing service using 'google ads api beta'

I write code follow 
https://developers.google.com/google-ads/api/docs/billing/billing-setups

But the response says failed

> {
>   "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."
>           }
>         ]
>       }
>     ]
>   }
> }
>
>
It says i have not permissions.
'The customer' is a client account created by MCC account on AdWords UI
Payment profile ID is also registered on my '
https://pay.google.com/gp/w/u/0/home/settings'

I wrote the code like below

> 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);
> }
>
>
And it will generate request body like below

> {
>     "customerId": "1241969154",
>     "operation": {
>         "create": {
>             "paymentsAccountInfo": {
>                 "paymentsAccountName": "CreditCardTest",
>                 "paymentsProfileId": "2096-9326-0136"
>             },
>             "startTimeType": "NOW"
>         }
>     }

}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/157b64d6-acaa-490a-a907-09c7c26571a2%40googlegroups.com.

Reply via email to