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)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/7d703cdc-adbe-4541-872b-95bbe310fa0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.