Hello,
I just ran the GetCampaigns.java file successfully, and now I want to add a row to the GAQL query-- VanityPharmaText
Here's the String query I have:
private void runExample(GoogleAdsClient googleAdsClient, long customerId) {
try (GoogleAdsServiceClient googleAdsServiceClient =
googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) {
String query = "SELECT campaign.id, campaign.name, campaign.vanity_pharma.vanity_pharma_text, FROM campaign ORDER BY campaign.id";
It's returning this error:
Failure message: errors {
error_code {
query_error: BAD_FIELD_NAME
}
message: "Error in SELECT clause: invalid field name \'FROM\'."
}
request_id: "xRpoPouoBilEUsq8qsD4Fg"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
Request ID xRpoPouoBilEUsq8qsD4Fg failed due to GoogleAdsException. Underlying errors:
Error 0: error_code {
query_error: BAD_FIELD_NAME
}
message: "Error in SELECT clause: invalid field name \'FROM\'."
___________________________________________________________________________
What is the correct way to write this? Thank you in advance for the help!
|
||||||