Hello Team, 

We would need the Campaign Id, Campaign Name, Campaign Type, Ad Strength, 
Ad Id, and Ad status  for the Performance Max campaigns. However, We are 
not getting the ad strength column for the Performance Max campaigns.

*Query Used: *
SELECT campaign.status,campaign.name, campaign.advertising_channel_type, 
campaign.id, asset_group.ad_strength, asset_group.id, asset_group.campaign 
FROM asset_group WHERE campaign.status = 'ENABLED' AND asset_group.status = 
'ENABLED'

*Code: *
ServerStream<SearchGoogleAdsStreamResponse> stream = 
gAdsAPIRequest.fetchServiceResponse(gAdsServiceClient, customerId, query);
if (stream != null) {
for (SearchGoogleAdsStreamResponse response : stream) {
for (GoogleAdsRow googleAdsRow : response.getResultsList()) {
                        Campaign campaign = googleAdsRow.getCampaign();
                        AssetGroup asset = googleAdsRow.getAssetGroup();
                        Metrics metrics = googleAdsRow.getMetrics();
                        Segments segments = googleAdsRow.getSegments();
}
}
}

*Response I got:*
googleAdsRow = (com.google.ads.googleads.v11.services.GoogleAdsRow) 
campaign {
  resource_name: "customers/XXXX/campaigns/XXXX"
  status: ENABLED
  advertising_channel_type: PERFORMANCE_MAX
  name: "Performance_Max_Top_Category"
  id: XXXXXXX
}
asset_group {
  resource_name: "customers/XXXXXX/assetGroups/XXXXXX"
  campaign: "customers/XXXXXX/campaigns/XXXXXXX"
  id: XXXXXX
  10: 7
}

Please do the needful.

-- 
CONFIDENTIALITY INFORMATION AND DISCLAIMER


This email message and its 
attachments may contain confidential, proprietary or legally privileged 
information and is intended solely for the use of the individual or entity 
to whom it is addressed. If you have erroneously received this message, 
please delete all copies of it immediately and notify the sender. If you 
are not the intended recipient of the email message you should not 
disseminate, distribute or copy this e-mail. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, incomplete or contain viruses and NetElixir 
accepts no liability for any damage caused by the limitations of the e-mail 
transmission. Thank you for your cooperation.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3a240147-d209-4778-963b-99520e1245f8n%40googlegroups.com.

Reply via email to