You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
// Alternatively you can request data for a subset of campaigns or ad groups.
//Scope = new AccountThroughAdGroupReportScope
//{
// AccountIds = null,
// Campaigns = new[] {
// new AdGroupReportScope
// {
// AccountId = accountId,
// CampaignId = <YourCampaignIdGoesHere>,
// AdGroupId = <YourAdGroupIdGoesHere>
// }
// }
//},
However an AdGroupReportScope cannot be assigned to Campaigns.. this should be CampaignReportScope.
Thanks!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 663008b6-1280-9ad2-7f46-94b12b531920
Version Independent ID: b679e12f-a226-d24b-d24e-92ff8a26bf66
or on further thought.. perhaps its intended to be assigned to AdGroupReports (instead of Campaigns). In that case the class name is right, its what the array is being assigned to that needs updated.
@codecadwallader good catch thanks! Looks like a copy/paste error with the commented out code (compile didn't catch it). We've updated the sample in the SDK repository, and will update Docs next opportunity.
There's a commented out example above:
// Alternatively you can request data for a subset of campaigns or ad groups.
//Scope = new AccountThroughAdGroupReportScope
//{
// AccountIds = null,
// Campaigns = new[] {
// new AdGroupReportScope
// {
// AccountId = accountId,
// CampaignId = <YourCampaignIdGoesHere>,
// AdGroupId = <YourAdGroupIdGoesHere>
// }
// }
//},
However an AdGroupReportScope cannot be assigned to Campaigns.. this should be CampaignReportScope.
Thanks!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: