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