admin管理员组文章数量:1122846
I'm trying to use the Google Ads API to create and update audiences but I'm unsure which credential I should use.
My scripts starts like this:
require 'xxxxx/vendor/autoload.php';
use Google\Ads\GoogleAds\Lib\V14\GoogleAdsClientBuilder;
use Google\Ads\GoogleAds\V14\Resources\OfflineUserDataJob;
use Google\Ads\GoogleAds\V14\Services\OfflineUserDataJobOperation;
use Google\Ads\GoogleAds\V14\Services\AddOfflineUserDataJobOperationsResponse;
use Google\Ads\GoogleAds\V14\Enums\OfflineUserDataJobTypeEnum\OfflineUserDataJobType;
use Google\Ads\GoogleAds\V14\Services\UserIdentifier;
use Google\Ads\GoogleAds\V14\Services\TransactionAttribute;
use Google\Ads\GoogleAds\Util\V14\ResourceNames;
$developerToken = 'wwwwwww';
$clientCustomerId = 'wwwwwww';
$loginCustomerId = 'wwwwwww';
I get the developer token from my Google Ads API so I guess, this one is the easiest to find.
I have a Google Ads account that has a XXX-XXX-XXXX format and I used it for $clientCustomerId.
=> is this correct?
I also have another ID XXX-XXX-XXXX displayed on the top left corner of my screen, I suppose it is the MCC number and I used it for $loginCustomerId. I'm not sure I have to use this one if I have the client ID.
=> Should I use the MCC id or something else?
I also have credentials for the API in my cloud console but I don't know if I have to use them here.
Thanks Laurent
本文标签: Google Ads APIPHP authenticationStack Overflow
版权声明:本文标题:Google Ads APIPHP authentication - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281269a1926266.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论