Google Ads API and test accounts help

74 views
Skip to first unread message

Morten Hoffmann Christensen

unread,
Oct 29, 2018, 7:36:32 PM10/29/18
to AdWords API and Google Ads API Forum
Hello I am having issues with Google Ads Test accounts.

I have created a test MCC account, and some regular ads test accounts from within the MCC.
I have a production account, and have acquired a Developertoken, and I am able to succesfully query using the Google Ads API Beta.

The issue I am having is that all the test accounts are not activated, which means that no accounts, except the MCC account, will be returned when I query the API for customers (or am I missing something ?)
I Query the search API like so:

            var client = new GoogleAdsClient(new Google.Ads.GoogleAds.Config.GoogleAdsConfig
           
{
               
DeveloperToken = "Dev Token",
               
OAuth2AccessToken = "Acess token",
               
OAuth2RefreshToken = "Refresh token",
               
OAuth2Scope = "https://www.googleapis.com/auth/adwords",
               
OAuth2ClientId = "Client ID",
               
OAuth2ClientSecret = "Client Secret",
               
OAuth2Mode = Google.Ads.GoogleAds.Util.OAuth2Flow.APPLICATION
           
});
           
           
var adsService = client.GetService(Services.V0.GoogleAdsService);


           
var request = new SearchGoogleAdsRequest
           
{
               
CustomerId = "The MCC Customer Id",
               
Query = "SELECT customer.id, customer.descriptive_name FROM customer",
               
PageSize = 1000
           
};
           


           
var result = adsService.SearchAsync(request);
           
            await result
.ForEachAsync((row) =>
           
{
               
//Iterate through the result and do stuff
           
});

Is it not possible to get linked accounts using the new API, or is this an issue with the test accounts not being properly activated ?

I have created campaigns on the test accounts as well, and I can see them in the Goggle Ads UI, but when I try to get these nothing is returned (I use the same approach as in the example above)

Dannison Yao (AdWords API Team)

unread,
Oct 30, 2018, 2:02:31 AM10/30/18
to AdWords API and Google Ads API Forum
Hi Morten,

Could you provide the complete SOAP request and response logs that were generated during the service call so I could better investigate this issue? You may use the reply privately to author option when sending the requested information.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages