google切换正式广告开发者令牌
This commit is contained in:
parent
0cbccbdd16
commit
719238911a
@ -58,6 +58,10 @@ class GoogleAdsCustomers
|
|||||||
$option['manager_customer_id'] = 1401879025; //开发者
|
$option['manager_customer_id'] = 1401879025; //开发者
|
||||||
$option['login_customer_id'] = 1401879025;
|
$option['login_customer_id'] = 1401879025;
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
//正式开发者令牌2个参数默认不赋值
|
||||||
|
// $option['manager_customer_id'] = $listAccessibleCustomers[0]; //开发者
|
||||||
|
// $option['login_customer_id'] = $listAccessibleCustomers[0];
|
||||||
}
|
}
|
||||||
$allRootAccounts = $this->googleAdsAccountService->runGetAccountHierarchy($option);
|
$allRootAccounts = $this->googleAdsAccountService->runGetAccountHierarchy($option);
|
||||||
// dump($allRootAccounts);
|
// dump($allRootAccounts);
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
[GOOGLE_ADS]
|
[GOOGLE_ADS]
|
||||||
; Required some config parameters, which can be found at:
|
; Required some config parameters, which can be found at:
|
||||||
; https://developers.google.com/google-ads/api/docs/first-call/overview#config
|
; https://developers.google.com/google-ads/api/docs/first-call/overview#config
|
||||||
developerToken = "C5wRcPCLwubnNgOEqweLBA"
|
;
|
||||||
|
developerToken = "Q-U_mAoZPY-JRnDJrYEN4Q"
|
||||||
|
|
||||||
|
|
||||||
; The configuration setting name for a flag that specifies whether to use the Google
|
; The configuration setting name for a flag that specifies whether to use the Google
|
||||||
@ -14,7 +15,7 @@ developerToken = "C5wRcPCLwubnNgOEqweLBA"
|
|||||||
; in code if your application uses multiple manager account + OAuth pairs. It should be set
|
; in code if your application uses multiple manager account + OAuth pairs. It should be set
|
||||||
; without dashes, for example: 1234567890 instead of 123-456-7890.
|
; without dashes, for example: 1234567890 instead of 123-456-7890.
|
||||||
; loginCustomerId = "INSERT_LOGIN_CUSTOMER_ID_HERE"
|
; loginCustomerId = "INSERT_LOGIN_CUSTOMER_ID_HERE"
|
||||||
loginCustomerId = 1509096882
|
;loginCustomerId = 1509096882
|
||||||
; This header is only required for methods that update the resources of an entity when permissioned
|
; This header is only required for methods that update the resources of an entity when permissioned
|
||||||
; via Linked Accounts in the Google Ads UI (AccountLink resource in the Google Ads API). Set this
|
; via Linked Accounts in the Google Ads UI (AccountLink resource in the Google Ads API). Set this
|
||||||
; value to the customer ID of the data provider that updates the resources of the specified
|
; value to the customer ID of the data provider that updates the resources of the specified
|
||||||
@ -30,8 +31,8 @@ loginCustomerId = 1509096882
|
|||||||
; appropriate flow based on your use case.
|
; appropriate flow based on your use case.
|
||||||
|
|
||||||
; For installed application flow.
|
; For installed application flow.
|
||||||
clientId = "117429539543-t73vtg7v1vag5b2dg68qaaaj00gmacjs.apps.googleusercontent.com"
|
clientId = "812178782913-1fpv68j8l90rell4elf9ougfn9d0aq72.apps.googleusercontent.com"
|
||||||
clientSecret = "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"
|
clientSecret = "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"
|
||||||
;refreshToken = "1//0eNpv3UrnIRMaCgYIARAAGA4SNwF-L9Ir_W9Fs5CrdW_7IFjRkq2nA6TZwSyi9Y8ukj8nirWt3BvOR74j3HatYX3cug7vfzGPUhs"
|
;refreshToken = "1//0eNpv3UrnIRMaCgYIARAAGA4SNwF-L9Ir_W9Fs5CrdW_7IFjRkq2nA6TZwSyi9Y8ukj8nirWt3BvOR74j3HatYX3cug7vfzGPUhs"
|
||||||
|
|
||||||
; For service account flow.
|
; For service account flow.
|
||||||
@ -54,7 +55,7 @@ logLevel = "INFO"
|
|||||||
; Optional transport settings.
|
; Optional transport settings.
|
||||||
; By default, "grpc" is used if available otherwise "rest".
|
; By default, "grpc" is used if available otherwise "rest".
|
||||||
; transport = "grpc"
|
; transport = "grpc"
|
||||||
transport = "rest"
|
transport = "grpc"
|
||||||
; Optional gRPC channel settings.
|
; Optional gRPC channel settings.
|
||||||
; Whether the gRPC channel to use is secure or not. Insecure gRPC channels should not be used in
|
; Whether the gRPC channel to use is secure or not. Insecure gRPC channels should not be used in
|
||||||
; production because they do not use encryption or authentication, they should only be used for
|
; production because they do not use encryption or authentication, they should only be used for
|
||||||
|
Loading…
Reference in New Issue
Block a user